package tech.mhuang.pacebox.springboot.core.servlet;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;

/**
 * 输出结果检测
 *
 * @author mhuang
 * @since 1.0.2
 */
public class WebResponseHeader extends HttpServletResponseWrapper implements HttpServletResponse {

    private HttpServletResponse response;

    /**
     * Constructs a response adaptor wrapping the given response.
     *
     * @param response the {@link HttpServletResponse} to be wrapped.
     * @throws IllegalArgumentException if the response is null
     */
    public WebResponseHeader(HttpServletResponse response) {
        super(response);
        this.response = response;
    }
}
